﻿<UserControl x:Class="ODAF.SilverlightApp.InfoView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Width="250" Height="200">
    
    <Grid x:Name="LayoutRoot">
        
        
        <StackPanel Orientation="Vertical">
            <Border BorderBrush="Gray" Background="#EFEFEF" CornerRadius="4" Margin="0,0,0,-1" Padding="4" Width="250" Height="150">
                <Grid  Margin="0">
                    <StackPanel Orientation="Vertical" HorizontalAlignment="Left" Margin="0">
                    <TextBlock x:Name="tbTitle" 
                               FontWeight="Bold" 
                               TextAlignment="Left" 
                               Width="220"
                               HorizontalAlignment="Left">Info</TextBlock>
                        
                    <ScrollViewer BorderBrush="Transparent" Height="120" Margin="0" Width="242">
                       <StackPanel Orientation="Vertical"  HorizontalAlignment="Left" >
                            <TextBlock x:Name="tbDescription" TextWrapping="Wrap">Description: 
                            </TextBlock>
                        </StackPanel>
                    </ScrollViewer>
                    </StackPanel>
            </Grid>
            </Border>
            
            <Image Source="Images/callout_bottom.png" Stretch="None"/>
        </StackPanel>
        <Image x:Name="btnClose" 
               Source="Images/CancelButton.png" 
               Stretch="None" 
               Margin="0,4,4,0"
               HorizontalAlignment="Right" 
               MouseLeftButtonUp="OnCloseButton"
               VerticalAlignment="Top"/>
    </Grid>
</UserControl>


